package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 科室信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class PhysicalExaminationValues2SaveRequestDTO extends BaseRequestDTO {


    /**
     * 档案编号
     *
     * @mbggenerated
     */
    @ApiParam(value = "档案编号",required = true)
    @NotNull
    private Long archivesId;

    /**
     * 体检编号
     *
     * @mbggenerated
     */
    @ApiParam(value = "体检编号",required = false)
    private Long peId;

    /**
     * 操作人id
     */
    @ApiParam( value = "操作人id",required = true)
    @NotNull
    private Long createPersonId;

    /**
     * 类目ID
     */
    @ApiParam( value = "类目ID",required = true)
    @NotNull
    private Long categoryId;

    /**
     * 体格检查信息（json字符串）
     *
     * @mbggenerated
     */
    @ApiParam(value = "体格检查信息（json字符串）（[{'attrId':'1','attrCode':'1','values':'1','values2':'1'}]）",required = true)
    @NotNull
    private String values;


    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
